package cn.tl.user.controller;

import cn.tl.org.utils.AjaxResult;
import cn.tl.user.service.IWxUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/wxUser")
public class WxUserController {
    @Autowired
    private IWxUserService wxUserService;
    @RequestMapping("/wxlogin")
    public AjaxResult wxLogin(@RequestBody Map<String,String> map){
        System.out.println(map);
        return  wxUserService.wxLogin(map);
    }
    //绑定用户
    @RequestMapping("/bind")
    public AjaxResult bind(@RequestBody Map<String,String> map){
        return  wxUserService.bind(map);
    }
}
